<?php

/*
 * Object/Motif.php
 */

namespace RHX\Model\Object;

class Motif{
    public $id;
    public $libelle;
    public $commentaire;

    public function __construct($data = array()) {
	$this->exchangeArray($data);
    }

    public function exchangeArray($data) {
	$this->id		 = isset($data['id']) ? $data['id'] : null;
	$this->libelle		 = isset($data['libelle']) ? $data['libelle'] : '';
	$this->commentaire	 = isset($data['commentaire']) ? $data['commentaire'] : '';
    }

    public function getArrayCopy() {
	return get_object_vars($this);
    }

}
?>
